double MSLUBufferCreate(double Window, double Interval);
Window: Size of moving window.
Interval: Interval after which new data point is added to buffer.
Create new buffer with a moving window of size "Window". The window applies to all operation performed on the buffer, except for the MSLUBufferGetMeanTotal, MSLUBufferGetStdDevTotal and MSLUBufferGetIntTotal functions. Set the window size to 0 in case no window is to be applied.
Unique identifier referring to the newly created buffer.
double MSLUBufferReset(double ID);
ID: Buffer identifier.
Reset buffer.
0.
double MSLUBufferLoad(double FileID);
FileID: ID of the data file that is to be loaded.
Create new buffer and load data file into it. The file that is loaded is "MSLUBuffer.<FileID>.txt". No window is applied for the newly created buffer.
Unique identifier referring to the newly created buffer.
double MSLUBufferWrite(double ID, double FileID);
ID: Buffer identifier. FileID: ID of the data file that is to be written.
Write buffer contents to a file named "MSLUBuffer.<FileID>.txt".
Always returns 0.
double MSLUBufferRemove(double ID);
ID: Buffer identifier.
Remove buffer.
Always returns 0.
double MSLUBufferRemoveAll(void);
Remove all buffers.
Always returns 0.
double MSLUBufferPut(double ID, double X, double Y);
ID: Buffer identifier.
X: X-value of data point.
Y: Y-value of data point.
Add new data point to buffer.
Always returns 0.
double MSLUBufferGet(double ID, double X);
ID: Buffer identifier.
X: X-value of data point.
Get Y-value of data point that has an X-value of "X", using linear interpolation.
Y-value.
double MSLUBufferGetMin(double ID);
ID: Buffer identifier.
Get lowest Y-value of all data points in the buffer.
Minimum value.
double MSLUBufferGetMax(double ID);
ID: Buffer identifier.
Get highest Y-value of all data points in the buffer.
Maximum value.
double MSLUBufferGetMean(double ID);
ID: Buffer identifier.
Get mean (weighted by the X-values) of data points in the buffer.
Weighted mean.
double MSLUBufferGetMeanTotal(double ID);
ID: Buffer identifier.
Get mean (weighted by the X-values) of data points in the buffer, irrespective of the window.
Weighted mean.
double MSLUBufferGetStdDev(double ID);
ID: Buffer identifier.
Get standard deviation (weighted by the X-values) of data points in the buffer.
Weighted standard deviation.
double MSLUBufferGetStdDevTotal(double ID);
ID: Buffer identifier.
Get standard deviation (weighted by the X-values) of data points in the buffer, irrespective of the window.
Weighted standard deviation.
double MSLUBufferGetInt(double ID);
ID: Buffer identifier.
Get integral of data points in the buffer.
Integral.
double MSLUBufferGetIntTotal(double ID);
ID: Buffer identifier.
Get integral of data points in the buffer, irrespective of the window.
Integral.
double MSLUBufferGetPercentile(double ID, double Percentage);
ID: Buffer identifier.
Percentage: Percentage for percentile computation.
Get "Percentage"-th percentile of data points in the buffer.
Percentile.
double MSLUBufferGetNoLowerBoundViolations(double ID, double LowerBound);
ID: Buffer identifier.
LowerBound: Lower bound.
Get the number of violations of "LowerBound";
Number of violations.
double MSLUBufferGetNoUpperBoundViolations(double ID, double UpperBound);
ID: Buffer identifier.
UpperBound: Upper bound.
Get the number of violations of "UpperBound".
Number of violations.
double MSLUBufferGetPercentageLowerBoundViolation(double ID, double LowerBound);
ID: Buffer identifier.
LowerBound: Lower bound.
Get the percentage of time in violation of "LowerBound".
Percentage of time in violation.
double MSLUBufferGetPercentageUpperBoundViolation(double ID, double UpperBound);
ID: Buffer identifier.
UpperBound: Upper bound.
Get the percentage of time in violation of "UpperBound".
Percentage of time in violation.
double MSLUBufferGetDeriv(double ID);
ID: Buffer identifier.
Get derivative.
Derivative.
double MSLUBufferGetSumX(double ID);
ID: Buffer identifier.
Get sum of X-values of data points in the buffer.
Sum of X-values.
double MSLUBufferGetSumY(double ID);
ID: Buffer identifier.
Get sum of Y-values of data points in the buffer.
double MSLUBufferGetSlope(double ID);
ID: Buffer identifier.
Get slope of regression curve of the linear regression analysis.
Slope of the regression curve.
double MSLUBufferGetIntercept(double ID);
ID: Buffer identifier.
Get intercept of regression curve with the X-axis in the linear regression analysis.
Intercept with X-axis of the regression curve.